From: Keir Fraser Date: Tue, 4 May 2010 11:10:54 +0000 (+0100) Subject: xm: catch TypeError if xenconsole is nonexistent X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12284 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=1edbc90d9991dcf2196114bf1d7ac2a75b996f3a;p=xen.git xm: catch TypeError if xenconsole is nonexistent Signed-off-by: Yu Zhiguo --- diff --git a/tools/python/xen/util/auxbin.py b/tools/python/xen/util/auxbin.py index 8dd2e5dec0..a690ad94d1 100644 --- a/tools/python/xen/util/auxbin.py +++ b/tools/python/xen/util/auxbin.py @@ -28,7 +28,7 @@ def execute(exe, args = None): a.extend(args) try: os.execv(exepath, a) - except OSError, exn: + except (OSError, TypeError), exn: print exepath, ": ", exn sys.exit(1)